<template>
    <div class="appraise-record-alert">
        <module-bord @closeModule="$emit('closeModule')">
            <div class="displayFlex justifyCtBwt record-wtitle">
                <div class="record-title">{{userMsg.title}}</div>
                <div class="record-title-right" v-if="userMsg.rightText">{{userMsg.rightText}}</div>
            </div>
            <user-list :userProp="userMsg" class="width-height-full" @loadingMore="loadingMore"></user-list>
        </module-bord>
    </div>
</template>

<script>
    export default {
        name: "AppraiseRecordAlert",
        props:{
            userProp:Object
        },
        data(){
            return{
                userMsg:{
                    // isScorll:false,
                    // curPage:1,
                    // totalPages:1,
                    // loadMore:false,
                    // title:'估价记录',
                    // rightText:'已参与人数:7万+',
                    // showLength : 5,
                    // list: [
                    //     // {
                    //     //     userId: 0,
                    //     //     name: '少年的你',
                    //     //     image: 'https://oss.pg.yibaotong.top/images/activity/circle/1023gift/bbd.png',
                    //     //     description: '刚刚',
                    //     //     rightText: '234.56',
                    //     // }
                    // ]
                },
            }
        },
        mounted(){
            this.userMsg = Object.assign({},this.userMsg,this.userProp)
            this.$store.state.loadMore = false;
        },
        methods:{
            loadingMore(obj){
                this.$emit('loadingMore',obj);
            }
        },
        components:{
            'module-bord': () => import('../../../../components/commonComponents/alert/ModuleBord'),
            'user-list': () => import('../../../../components/commonComponents/usersList/UserList'),
        },
        watch:{
            userProp(val){
                this.userMsg = Object.assign({},this.userMsg,val);
            }
        }
    }
</script>

<style scoped lang="scss">
    .appraise-record-alert /deep/{
        .module-bord-position{
            z-index: 1061;
        }
        .com_black{
            z-index: 1060;
        }
        .module-bord-content{
            padding: .22rem;
        }
    }
    .appraise-record-alert{
        padding:.16rem;
    }
    .record-title{
        color: #313233;
        font-size: .18rem;
        font-weight: bold;
    }
    .record-title-right{
        color: #939599;
        font-size: .13rem;
    }
    .record-wtitle{
        padding-bottom: .25rem;
    }
</style>